import Cookies from 'js-cookie'
//引入 js-cookie控制token过期 https://blog.csdn.net/qq_20802379/article/details/81436634
const TokenKey = 'Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
